package com.my.redis.pojo;

/**
 * Created by 80002023 on 2016/6/15.
 */
public class KeyValue {

    private String id;
    private String key;
    private String value;

    private long expires;//seconds

    public KeyValue() {
    }

    public KeyValue(String key, String value) {
        this.key = key;
        this.value = value;
    }

    public KeyValue(String id, String key, String value) {
        this.id = id;
        this.key = key;
        this.value = value;
    }

    public KeyValue(String id, String key, String value, long expires) {
        this.id = id;
        this.key = key;
        this.value = value;
        this.expires = expires;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public long getExpires() {
        return expires;
    }

    public void setExpires(long expires) {
        this.expires = expires;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
}
